<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改代理商图片信息')" />
    <th:block th:include="include :: datetimepicker-css" />
    </head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-picturesInfo-edit" th:object="${agentPicturesInfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">渠道返回信息：</label>
                <div class="col-sm-8">
                    <input name="channelResponse" th:field="*{channelResponse}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">非法人身份证国徽面：</label>
                <div class="col-sm-8">
                    <input name="settleIdCardBackPic" th:field="*{settleIdCardBackPic}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">经营场所所有权或者租赁协议：</label>
                <div class="col-sm-8">
                    <input name="shopPlaceRightCertifyFile" th:field="*{shopPlaceRightCertifyFile}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">经营场所门头照：</label>
                <div class="col-sm-8">
                    <input name="shopOuterPic" th:field="*{shopOuterPic}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">经营场所室内照片：</label>
                <div class="col-sm-8">
                    <input name="shopInnerPic" th:field="*{shopInnerPic}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">BD 和代理商合影：</label>
                <div class="col-sm-8">
                    <input name="bdagentPic" th:field="*{bdagentPic}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开户许可证/企业账户截图：</label>
                <div class="col-sm-8">
                    <input name="publicAccountPic" th:field="*{publicAccountPic}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">合作协议原件：</label>
                <div class="col-sm-8">
                    <input name="newAgentProtocolPic" th:field="*{newAgentProtocolPic}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">非法人结算授权函：</label>
                <div class="col-sm-8">
                    <input name="settleAuthLetterPic" th:field="*{settleAuthLetterPic}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">营业执照复印件：</label>
                <div class="col-sm-8">
                    <input name="businessLicensePic" th:field="*{businessLicensePic}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">结算对象银行卡正面照片：</label>
                <div class="col-sm-8">
                    <input name="settleBankCardFrontPic" th:field="*{settleBankCardFrontPic}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">非法人身份证人像面：</label>
                <div class="col-sm-8">
                    <input name="settleIdCardFrontPic" th:field="*{settleIdCardFrontPic}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">身份证国徽面：</label>
                <div class="col-sm-8">
                    <input name="idCardBackPic" th:field="*{idCardBackPic}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">身份证人像面：</label>
                <div class="col-sm-8">
                    <input name="idCardFrontPic" th:field="*{idCardFrontPic}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">代理商编号：</label>
                <div class="col-sm-8">
                    <input name="agentId" th:field="*{agentId}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "channel/picturesInfo";
        $("#form-picturesInfo-edit").validate({
            focusCleanup: true
        });

        $("input[name='date']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-picturesInfo-edit').serialize());
            }
        }
    </script>
</body>
</html>